import service from '@/utils/http.js'

// 用户登录
export const login = (params) => {
  return service({
    url: 'manage/login/login',
    method: 'post',
    data : params
  }) 
}

// 根据账号获取项目列表
export const projects = (params) => {
  return service({
    url: 'manage/login/projects',
    method: 'post',
    data : params
  }) 
}

// 新闻资讯
export const getNewsList = (params) => {
  return service({
    url: 'manage/info.index/getNewsList',
    method: 'post',
    data : params
  }) 
}

// 新闻资讯详情
export const getNewsDetail = (params) => {
  return service({
    url: 'manage/info.index/getNewsDetail',
    method: 'post',
    data : params
  }) 
}


// 资讯更多
export const getIndustryInfoMore = (params) => {
  return service({
    url: 'manage/info.index/getIndustryInfoMore',
    method: 'post',
    data : params
  }) 
}

// 根据账号获取项目列表
export const getInfoList = (params) => {
  return service({
    url: 'manage/info.index/getInfoList',
    method: 'post',
    data : params
  }) 
}

// 通知
export const venueTrends = (params) => {
  return service({
    url: 'manage/info.index/venueTrends',
    method: 'post',
    data : params
  }) 
}

// 通知
export const venueTrends2 = (params) => {
  return service({
    url: 'manage/info.index/venueTrends2',
    method: 'post',
    data : params
  }) 
}


// 通知详情
export const trendsDetail = (params) => {
  return service({
    url: 'manage/info.index/trendsDetail',
    method: 'post',
    data : params
  }) 
}

// 关于我们
export const appletInfo = (params) => {
  return service({
    url: 'manage/info.index/appletInfo',
    method: 'post',
    data : params
  }) 
}

// 邀请人二维码
export const getApplet = (params) => {
  return service({
    url: 'manage/Distribution/getApplet',
    method: 'post',
    data : params
  }) 
}
// 邀请人二维码
export const Distribution = (params) => {
  return service({
    url: 'manage/Distribution/index',
    method: 'post',
    data : params
  }) 
}

